Implementation Notes

Issue #5 — DHCPv6 Relay Options & Pipeline — 2026-06-14

Design Decisions

Decision Remote-ID option uses Unknown variant due to dhcproto limitation

Ambiguity: dhcproto v0.14 has RemoteID in OptionCode but not in DhcpOption.

Choice: Encode/decode Remote-ID (code 37) as DhcpOption::Unknown with manual code matching.

Rationale: The wire format is correct; the only difference is less type safety. If dhcproto adds a dedicated variant, switching is a localized change.

Deviations

None — implementation followed the spec as written.

Tradeoffs

Tradeoff Separate encode/decode functions vs generic option handler

Alternatives: (A) Per-option functions; (B) Generic option encode/decode with code registry.

Chose A: Only 2 relay options (18, 37). A registry adds complexity without benefit at this scale.

Open Questions

None.